package i_tcp;

import java.io.IOException;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package i_tcp
 * @date 2024/4/14 下午3:26
 */
public class Client {
    public static void main(String[] args) {

    }


}
class tcp {
    InetAddress address;

    {
        try {
            address = InetAddress.getLocalHost();
            Socket socket=new Socket(address,8888);
            OutputStream os=socket.getOutputStream();

        } catch (UnknownHostException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

}










